﻿using UnityEngine;
using System.Collections;

public class UIBuildingItem : MonoBehaviour {

    public enum TypeBuilding
    {
        Casa, 
        Bar, 
        Miniera, 
        Fattoria,
        Falegnameria, 
        Laboratorio, 
        Porto
    }

    public TypeBuilding type;
    public UILabel Label;
    public UISprite Sprite;

	// Use this for initialization
	void Start () {
        Label.text = type.ToString();
        switch (type)
        {
            case TypeBuilding.Casa:
                Sprite.spriteName = "house";
                break;
            case TypeBuilding.Bar:
                Sprite.spriteName = "tavern";
                break;
            case TypeBuilding.Miniera:
                Sprite.spriteName = "stonecutter";
                break;
            case TypeBuilding.Fattoria:
                Sprite.spriteName = "farm";
                break;
            case TypeBuilding.Falegnameria:
                Sprite.spriteName = "woodcutter";
                break;
            case TypeBuilding.Laboratorio:
                Sprite.spriteName = "cottage";
                break;
            case TypeBuilding.Porto:
                Sprite.spriteName = "porto";
                break;
            default:
                break;
        }
        
	}
	
	// Update is called once per frame
	void Update () {
	
	}
}
